home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
ELECTRON
/
3634.ZIP
/
PWR100.ZIP
/
PWRDEMO.DOC
< prev
next >
Wrap
Text File
|
1992-10-11
|
21KB
|
541 lines
┌╦═══╦┐ ┌╦═══╦┐ ┌╦ ╦┐ ┌╔═══╦┐ ┌╦═══╦┐
│╠═══╩┘ │║ ║│ │║╔╩╗║│ ├╬═══ │╠══╦╩┘
└╩ └╩═══╩┘ └╩╝ ╚╩┘ └╩═══╩┘ └╩ ╚═┘
Version 1.0
Copyright 1991-1992 Michael D. O'Connor
All Rights Reserved
┌─────────┐
┌─────┴───┐ │ (R)
──│ │o │──────────────────
│ ┌─────┴╨──┐ │ Association of
│ │ │─┘ Shareware
└───│ o │ Professionals
──────│ ║ │────────────────────
└────╨────┘ MEMBER
┌──────────────────┐
│ FILE PWRDEMO.DOC │
└──────────────────┘
┌──────────────────────────────┐
│ Guide to POWER Demonstration │
└──────────────────────────────┘
PREVIEW:
This file contains a user-guided demonstration of the
Power program's operations and capabilities.
A special note needs to be made: the program will only
recognize one DataBase filename: CHIP.BSE. This is
the DataBase file for storing all chips and their
parameters that have ever been entered through the
program. The CHIP.BSE does NOT contain useful
information; it contains only filler data for
demonstration purposes. The first 16 lines does
contain useful data.
1
After completing the demonstration, you should delete the
CHIP.BSE file and then start the Power program. It will
automatically create a new CHIP.BSE file, ready to receive input
whenever you enter chip part numbers for your circuit.
This guide includes 3 different demonstrations: the Calculation,
Merge, and the Data-Entry demonstrations.
POWER PROGRAM CALCULATION DEMONSTRATION
─────────────────────────────────────────
This section will guide the user with a user-run demonstration of
the data-processing function of the Power program, in which the 3
sample files will be used to yield the calculated current
requirements. These three sample files contain actual chip
parameter data.
┌─────────────────────────────────────────────┐
│ First print out this short document, then │
│ run the program with this document in hand. │
└─────────────────────────────────────────────┘
Type "PWR" and press the <Enter> key at the DOS prompt. Press
the required function key (randomly selected by the program) to
start the program.
Next, type in the name of the included file, SAMPLE.DAT, at the
"Input Filename 1" prompt. Press <Enter> on the second filename
prompt. The Main Menu will be displayed.
To view the opened file, type 2 and press <Enter>. You will see
a list of chips whose current parameters (the parameters may be
current, but I'm talking about electrical current! <grin>) and
quantities will be factored into Power's averaging formula to
arrive at the calculated current.
Next, after exiting the view function, type 6 and press <Enter>
to start the calculations. A chart box will immediately pop up
with the calculated values, and you will be prompted with whether
you want the results to be output to the disk in ASCII format
(text file). Note the value under "Calculated Required Current,"
which is 0.881 amps.
The 0.881-amp figure is in the range between the "Total Typical
Current" value (0.706 amps) and the "Total Maximum Current" value
(1.230 amps). The user can design to 0.881 amps with about 84%
confidence instead of 1.230 amps, the worst case value.
2
Press <Enter> (for No to the text file prompt). (You may output
the totals to disk if you wish.) Back at the Main Menu, type 7
and press <Enter> to re-initialize the program with 2 new sample
files. The SAMPLE.DAT file will be released from memory, but the
CHIP.BSE database file will remain loaded in memory. You will be
prompted with 2 filename prompts. This has the effect of exiting
the program, then restarting it with new input files. Enter the
following filenames, one for each prompt: SAMPLEA.DAT,
SAMPLEB.DAT. (Since the default file extension is .DAT, you can
enter just the name without the extension.)
The contents of these two files are actually the contents of
SAMPLE.DAT file split in half. The purpose is to show that
running the calculations via function 6 (Process Input Files) on
these 2 files together will yield the same results as the one
yielded by the single SAMPLE.DAT file.
To do this, type 6 and press <Enter>. This time, a different
window with a prompt will appear. (This is because the program
sensed that there is more than one input file.) You are prompted
on which files you want processed. Since you want to process
both files, enter "12" without any spaces (and without the
quotes). This denotes files 1 and 2 for processing (a menu box
will show which file is which number).
Since you are processing more than one file, an Assigned Vcc
value must be given as a common denominator for the data in both
files. Type 5 and press <Enter> when prompted.
After this, the chart box will again pop up, giving the same
results arrived at by the SAMPLE.DAT file: 0.881 amps for the
calculated current.
end of Calculation Demonstration
3
POWER PROGRAM MERGE DEMONSTRATION
───────────────────────────────────
This section will show the effectiveness of the Merge function,
number 5 in the Main Menu. The following sample files will be
used for this demo: SAMPLEA.DAT, SAMPLEB.DAT, SAMP500.DAT, and
SAMP998.DAT.
The Merge function is a major feature that merges an input file's
set of data with another input file without duplicating them.
The advantage is that a group of users can benefit from one
another's data entries (since every user has his own DataBase).
All that is needed is a merge operation of everyone's databases
and the user's own DataBase is updated with all the input that
the rest of the group entered. This is what a DOS copy command
cannot do.
The same cannot be said of the input files, since a mere DOS copy
command is all it takes between users (A DOS copy command is an
internal DOS command that makes a copy of one file to another
location. Please refer to MS-DOS User's Guide and Reference for
more information). But sometimes a user may want to combine two
or more input files in one file because the separate circuits
represented in separate files may need to be combined into one
circuit as part of the design process.
Both scenarios justify the need for a Merge function.
Start the program with one new sample file, SAMPLEC.DAT, to
create a new, empty file.
(Or if you are continuing from the previous Calculation
Demonstration, type 7 and press <Enter> to re-initialize the
program with just one file, SAMPLEC.DAT, instead of the two you
have currently loaded.)
At the Main Menu, type 5 and press <Enter>.
You will then be prompted for an input file name. This is the
file whose data will be merged into the input file you have
currently loaded. (This external file is the "merger" whose data
will merge to the "mergee," which is the input file, SAMPLEC.DAT,
now loaded in memory.) Enter one of the sample input file:
SAMPLEA.DAT (the Merger).
Since you are merging data from SAMPLEA.DAT into an empty file,
the program senses this and kicks into Automatic Mode. This is
nothing more than copying the data. The operation will be quick.
4
Press any key to continue from the status report. You will then
be prompted for another external file to merge to SAMPLEC.DAT,
which is now filled. Enter another sample input file:
SAMPLEB.DAT.
This time, because the program senses that the Mergee file
(SAMPLEC.DAT) is not empty, you will be prompted on the Merge
Mode to kick into. There are two basic modes, Automatic and
Semi-Automatic. A third one is also an Automatic mode, but with
an additional instruction to add up all the quantities of each
matched part number. This would be necessary if you are to
combine two circuits in one. Without this instruction, all
records with matched part numbers are automatically screened out.
This would be useful if all you want to do is just collect data
that doesn't exist in your input file.
Select the Automatic Mode without the add-quantity instruction.
The program will again kick into action, and leave a status
report. It will be just as quick. This time you'll be prompted
on whether you would like the line item numbers, which are now
out of sequence as a result of the merge operation, to be
resequenced. Choose your answer.
You have now just created a file identical to the SAMPLE.DAT
file. If you like, you may run the calculations on this file.
The results should be the same as it was before.
Next, after pressing any key to continue from the status report,
enter the next input file: SAMP998.DAT. This file contains 499
records of filler data. The part number field is numbered
sequentially from 2 to 998 with even numbers.
Select the Semi_Automatic Mode.
You will see a chart display showing one line each from the
Merger and Mergee files. All you will see at this point is all
499 of the filler data being merged into the Mergee. This is
because there is no match in either file to stop the action. (If
a match occurs, it will stop for your confirmation to tranfer a
line of data with a duplicate part number.)
Press a key to continue from the status report and enter another
input file: SAMP500.DAT. This file contains 500 records of
filler data, but this time the part number field is numbered
sequentially from 1 to 500, both odd and even numbers.
Select the Semi-Automatic Mode again. This time you will have a
match, and the program will halt at a matched part number.
Notice the match in the part numbers in both lines. The program
stopped because there was a match in the two records, and you are
prompted on whether to merge the matched record from the Merger
5
to the Mergee. (There is one caveat: when you actually merge
matched records, you are introducing part number redundancies in
the Mergee file. This does not affect the required current
calculation process, however.)
In between matches, the program will automatically merge
unmatched data to the Mergee file. In this case, the
odd-numbered records will be merged but program is halted at
every even part number. Press <Enter> several times to see this
happen.
The key 'A' (for Automatic) is a hotkey that will kick the
program from Semi-Automatic to fully automatic mode (valid when
the program stops with a matched prompt). Do this now. Notice
the counts of attempted merges and the actual merges. There
should be an attempted merge count of 500 and a total unmatched
merge count of 250. The matched merge count will show how many
records you have allowed merged to the mergee file.
Now, for a demonstration of a merge operation with the
add-quantity instruction, enter the SAMP500.DAT input file again
and select the Automatic Mode with the add-quantity instruction.
The resultant status report will show a total of 500 matched
records' quantities added, but no records actually merged at all.
In the earlier merge, only 250 of the 500 records were merged.
Here, all 500 records were affected by the add-quantity
instruction.
This concludes the demonstration.
Try out the Merge function in the DataBase Menu; use the
CHIP500.BSE for merging to the DataBase. The only difference
between this DataBase Merge function and the Merge function in
the Main Menu is that since the DataBase file has no quantity
field in it, there is no add-quantity instruction in the Merge.
Also, there is no Assigned Vcc field.
Also try merging the DataBase to the input file (one that is not
a DataBase file) or vice versa. You'll find that the program
will detect the file incompatibility error and issue an error
message to that effect.
end of Merge Demonstration
6
POWER PROGRAM DATA ENTRY DEMONSTRATION
────────────────────────────────────────
Load SAMPLE.DAT in memory. Invoke number 1 Main Menu item for
starting the data-entry session. You will see a highlighted
field bar in the part number field. This is where you enter your
data. The commands seen in the magenta command menu bar at the
bottom of the window is explained in detail by a
context-sensitive help; press the function key F1 for this.
The Item Number you see on the far left box is the line item
number for the part you are entering. It automatically
increments for every line of data you enter.
Enter one line of data to get a feel for it. Enter "part" for
the part number field, and enter all the other fields.
When you are back in the part number field, press F3. A
Constants Assignment box will pop up to give you a choice of
which of the three fields to assign constants to. Choose 4 for
all three fields.
Enter the following Variable Constants:
MAX Vcc CONSTANT: 7
MANUFACTURER CONSTANT: Texas Inst
PREFIX CONSTANT: SN74LS
Any lower case characters are automatically capitalized.
After this, the F4 key will become enabled on the magenta command
menu bar. This key will clear all the constants. Notice that
the part number field now has the string 'SN74LS' in it. This
string will be inserted in this field for every new entry you
make, and any entry you make in this field will be concatenated
to this 'SN74LS' string, so that the program will treat the entry
as an entire part number.
The constants are global constants, meaning the constants will
remain in effect as long as the program is running, regardless of
where you are in the menus, whether in the data-entry session or
not. This way you won't have to re-assign the constants after
re-invoking the data-entry session. The Variable Constants
become undefined once the program is exited.
The F5 key allows you to see the Variable Constants. Useful as a
reminder once you resume your data entry.
Enter the string '100' in the part number field and press
<Enter>. Notice the constants are filling up the fields
MANUFACTURER and MAX Vcc. Also note the concatenation of the
'100' with the 'SN74LS'.
7
(The ASSIGNED Vcc value in the ASSGN Vcc field is not a constant
assignment; it is a known value that comes from the assigned
value given to the file when it was first created. Its entry
field is always automatically filled in.)
The term "Assigned Vcc" denotes the engineer's intent to apply
that voltage to his circuit design, and hence to the chip.
Next, all you have left is the electrical current parameters, the
number of pins of the chip, and the quantity. Enter any value in
these fields.
Once back at the part number field, enter the string '00' and
press <Enter>.
You will see a matched-part box pop up. The information listed
therein is from the DataBase. You are being prompted on whether
to transfer the data from the DataBase to the input file you are
entering data in. Press <Enter> for an affirmative.
NOTE: This confirmation prompt can be disabled by toggling the
DataBase Xfer from the "Confirm" setting to the "Auto" setting in
the Configuration Menu, so that the matched chip's data is
automatically transferred to the input file without prompting for
user confirmation. The Power program comes with the DataBase
Xfer set to "Confirm."
All the entry fields will then be filled except for the quantity.
Hence all you've done is enter the suffix of a part number and
the quantity. Short of the Merge operation, this is the ultimate
time-saver when it comes to data entry. If the quantity is to be
one (1), pressing <Enter> is all that is needed since the default
quantity is one.
Regardless of DataBase Xfer configuration setting, the message
"Parameters Transferred" is displayed whenever an actual transfer
occurs.
Next, enter the string '100' in the part number field again and
press <Enter>. You will see another part number match, but this
time it is the same data that you entered earlier. Again, this
data comes from the DataBase. Notice that the prefix 'SN74LS' is
concatenated to the suffix '100'.
8
After one more line of input, press the F4 function key and watch
the constants disappear and the F4 key on the magenta command
menu bar become disabled.
This concludes the data entry demonstration.
end of Data Entry Demonstration
I hope you like the program.
Please remember to delete the CHIP.BSE DataBase file, as it
contains only filler data.
9